Figure 6 .11: The working of query

In chaincode the following is a representation of different functions, which

explains that we should first define the code functions to all the available APIs

in the chaincode interface:

Figure 6 .12: Representation of different functions in Chaincode

The process of updating the ledger is shown in the following figure. Once an

update to the ledger is proposed and endorsed, it will be returned to the

application and will, in turn, send the updated ledger to be ordered and written

to every peer’s ledger: